package com.jxtc.enterprise.hr.vo;


import com.jxtc.enterprise.common.entity.Department;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;

@Schema(description = "部门信息")
@Getter
@Setter
@ToString
@NoArgsConstructor
@AllArgsConstructor
public class DepartmentVO {

    @Schema(description = "部门 ID", example = "c752804d0cd410267f404dd3f0457a57")
    private String id;

    @Schema(description = "部门名称", example = "技术部")
    private String name;

    @Schema(description = "部门配餐地址", example = "xx 栋 xxx 号")
    private String address;

    public DepartmentVO(Department department) {
        this.id = department.getId();
        this.name = department.getName();
        this.address = department.getAddress();
    }
}
